package com.handyshop.mall.dubbo.commodity.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.handyshop.mall.dubbo.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel(value = "门店商品库存表")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "nrs_stock")
public class Stock extends BaseEntity {
    /**
     * sku唯一标识
     */
    @TableField(value = "sku_code")
    @ApiModelProperty(value = "sku唯一标识")
    private String skuCode;

    /**
     * 库存数量
     */
    @TableField(value = "num")
    @ApiModelProperty(value = "库存数量")
    private Integer num;

    /**
     * 锁定库存
     */
    @TableField(value = "lock_num")
    @ApiModelProperty(value = "锁定库存")
    private Integer lockNum;

    public static final String COL_ID = "id";

    public static final String COL_SKU_CODE = "sku_code";

    public static final String COL_NUM = "num";

    public static final String COL_LOCK_NUM = "lock_num";

    public static final String COL_DELETE_FLAG = "delete_flag";

    public static final String COL_CREATOR_ID = "creator_id";

    public static final String COL_CREATOR = "creator";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_MODIFY_TIME = "modify_time";
}